package com.java.system.common.exception;

/**
 * @ClassName: BaseSystemException
 * @Description:
 * @Version: v1.0.0
 * @Author: Shan Feiyang
 * @Date: 2019/9/7 16:44
 * Modification History:
 * Date           Author           Version     Description
 * -------------------------------------------------------------
 * 2019/9/7      Shan Feiyang        v1.0.0         创建
 */
public class BaseSystemException extends RuntimeException {
    private String code = "200";

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public BaseSystemException() {
    }

    public BaseSystemException(String code) {
        this.code = code;
    }

    public BaseSystemException(String message, String code) {
        super(message);
        this.code = code;
    }

    public BaseSystemException(String message, Throwable cause, String code) {
        super(message, cause);
        this.code = code;
    }

    public BaseSystemException(Throwable cause, String code) {
        super(cause);
        this.code = code;
    }

    public BaseSystemException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace
            , String code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }
}
